/**
 * 
 */
package com.alexwebs;

import java.text.DateFormat;
import java.util.Date;

/**
 * @author Alex
 * 
 */
public class DateFormatExample {

	public static void main(String[] args) {

		Date d = new Date();
		Date birthday = new Date(1982, 04, 03);

		System.out.println(d.toString());

		if (d.before(birthday))

			System.out.println("Mai este pina la ziua ta");

		System.out.println(DateFormat.getInstance().format(d));
	}

}
